package com.howie.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.howie.common.utils.PageUtils;
import com.howie.gulimall.product.entity.CategoryEntity;
import com.howie.gulimall.product.vo.gulimall_vo.Catelog2Vo;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author laizhenghua
 * @email 3299447929@qq.com
 * @date 2020-12-06 19:27:39
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity> listWithTree();

    void removeMenuByIds(List<Long> asList);

    /**
     * @description: 找到 catelogId的完整路径
     * @author: laizhenghua
     * @date: 2020/12/18 18:57
     * @param: catelogId
     * @return: java.lang.Long[]
     */
    Long[] findCatelogPath(Long catelogId);

    void updateCascade(CategoryEntity category);

    List<CategoryEntity> getAllCategoryWithLevel1();

    Map<String, List<Catelog2Vo>> getCatalogJson();
}

